import React, {PureComponent} from 'react';
import { HomeWrapper} from "./HomeStyle";
import HomeHeader from "./header/HomeHeader";
import {BodyComponent} from './body/store/index';
import {BrowserRouter, Route} from "react-router-dom";
import ProjectBodyComponent from "./project/ProjectBodyComponent";
import SystemComponent from "./system/SystemComponent";
import PublicComponent from "./public-account/PublicComponent";
import NavComponent from "./nav/NavComponent";
import ProjectTypeComponent from "./project-types/ProjectTypeComponent";

class HomePage extends PureComponent {

    constructor(props) {
        super(props);
        this.state = {
            showLogin: true,
            showRegister: true,
        };
    }

    render() {
        return (
            <BrowserRouter>
                <HomeWrapper>
                    <HomeHeader/>
                        <Route path={"/"} exact component={BodyComponent}/>
                        <Route path={"/index"} exact component={BodyComponent}/>
                        <Route path={"/project"} exact component={ProjectBodyComponent}/>
                        <Route path={"/system"} exact component={SystemComponent}/>
                        <Route path={"/public"} exact component={PublicComponent}/>
                        <Route path={"/nav"} exact component={NavComponent}/>
                        <Route path={"/cls"} exact component={ProjectTypeComponent}/>
                </HomeWrapper>
            </BrowserRouter>
        );
    }

}

export default HomePage;